package com.crm.service.impl;

import com.crm.dao.LinkManDao;
import com.crm.entity.LinkMan;
import com.crm.service.LinkManService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 联系人Service实现类
 *
 * @author 高旭
 * @date 2020-12-25
 */
@Service("linkManService")
public class LinkManServiceImpl implements LinkManService {

    @Resource
    private LinkManDao linkManDao;

    @Override
    public List<LinkMan> find(Map<String, Object> map) {
        return linkManDao.find(map);
    }

    @Override
    public Long getTotal(Map<String, Object> map) {
        return linkManDao.getTotal(map);
    }

    @Override
    public int add(LinkMan linkMan) {
        return linkManDao.add(linkMan);
    }

    @Override
    public int update(LinkMan linkMan) {
        return linkManDao.update(linkMan);
    }

    @Override
    public int delete(Integer id) {
        return linkManDao.delete(id);
    }
}
